//
//  HDRecognizeeNewCell.swift
//  HuaDaoPeifu
//
//  Created by 刘杰 on 2018/7/13.
//  Copyright © 2018年 paiyipai. All rights reserved.
//

import UIKit

class HDRecognizeeNewCell: UITableViewCell {

    
    @IBOutlet weak var IdentifierLabel: UILabel!
    @IBOutlet weak var relationLabel: UILabel!
    
    @IBOutlet weak var isCheckLabel: UILabel!
    
    var canSelected : Bool?
    var recognizee : HDRecognizeeModel!{
        didSet{
            
            IdentifierLabel.text = recognizee.partone?.name
            isCheckLabel.isHidden = (recognizee.identify == 0)
            switch recognizee.relation {
            case "0":
                relationLabel.text = "本人"
                break
//            case "1":
//                relationLabel.text = "配偶"
//                break
            case "2":
                relationLabel.text = "子女"
                break
            default:
//                relationLabel.text = "父母"
                break
            }
        }
    }
}
